all: consumer producer init login
init:client_init.cpp ./proto/message.pb.cc ./proto/protocol.pb.cc  /home/zhong/workplace/项目/RabbitMQ/RabbitMQ/third/include/muduo/proto/codec.cc
	g++ -g -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
consumer:test_consumer.cpp ./proto/message.pb.cc ./proto/protocol.pb.cc  /home/zhong/workplace/项目/RabbitMQ/RabbitMQ/third/include/muduo/proto/codec.cc
	g++ -g -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
producer:test_producer.cpp ./proto/message.pb.cc ./proto/protocol.pb.cc  /home/zhong/workplace/项目/RabbitMQ/RabbitMQ/third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
login:client_login.cpp ./proto/message.pb.cc ./proto/protocol.pb.cc  /home/zhong/workplace/项目/RabbitMQ/RabbitMQ/third/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++14 -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
.PHONY:clean
clean:
	rm -f consumer producer login init
